package com.zxq.common.middleware.lock;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class RedisLockWatchdog extends RenewalWatchdog<RedisLock> {
    /**
     * @param intervalNano    nanosecond
     * @param stepSizeNano    nanosecond
     * @param mapInitSize map init size
     */
    public RedisLockWatchdog(long intervalNano, long stepSizeNano, int mapInitSize) {
        super(intervalNano, stepSizeNano, mapInitSize);
    }

    @Override
    protected LockTimer<RedisLock> createLockTimer(RedisLock lock) {
        return new RedisLockTimer(lock, renewalIntervalNano, renewalStepNano);
    }
}
